from config import HOST


class ApiTender:
    def __init__(self,session):
        #获取session
        self.session = session
        #获取投资接口的url
        self._url_tender = HOST+"/trust/trust/tender"
    #投资接口封装
    def api_tender(self,amount=100):
        data = {
            "id":"642",
             "depositCertificate":-1,
            "amount":amount
        }
        return self.session.post(url=self._url_tender,data=data)
